package com.ruoyi.house_sale.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.house_sale.mapper.CustPlanMapper;
import com.ruoyi.house_sale.domain.CustPlan;
import com.ruoyi.house_sale.service.ICustPlanService;

/**
 * 客户意向Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-04-09
 */
@Service
public class CustPlanServiceImpl implements ICustPlanService 
{
    @Autowired
    private CustPlanMapper custPlanMapper;

    /**
     * 查询客户意向
     * 
     * @param planid 客户意向主键
     * @return 客户意向
     */
    @Override
    public CustPlan selectCustPlanByPlanid(Long planid)
    {
        return custPlanMapper.selectCustPlanByPlanid(planid);
    }

    /**
     * 查询客户意向列表
     * 
     * @param custPlan 客户意向
     * @return 客户意向
     */
    @Override
    public List<CustPlan> selectCustPlanList(CustPlan custPlan)
    {
        return custPlanMapper.selectCustPlanList(custPlan);
    }

    /**
     * 新增客户意向
     * 
     * @param custPlan 客户意向
     * @return 结果
     */
    @Override
    public int insertCustPlan(CustPlan custPlan)
    {
        return custPlanMapper.insertCustPlan(custPlan);
    }

    /**
     * 修改客户意向
     * 
     * @param custPlan 客户意向
     * @return 结果
     */
    @Override
    public int updateCustPlan(CustPlan custPlan)
    {
        return custPlanMapper.updateCustPlan(custPlan);
    }

    /**
     * 批量删除客户意向
     * 
     * @param planids 需要删除的客户意向主键
     * @return 结果
     */
    @Override
    public int deleteCustPlanByPlanids(Long[] planids)
    {
        return custPlanMapper.deleteCustPlanByPlanids(planids);
    }

    /**
     * 删除客户意向信息
     * 
     * @param planid 客户意向主键
     * @return 结果
     */
    @Override
    public int deleteCustPlanByPlanid(Long planid)
    {
        return custPlanMapper.deleteCustPlanByPlanid(planid);
    }
}
